<?php
namespace aapp\models;

use yii;
use yii\db\Query;

class Purchase_saleman
{
    private $table;

    public function __construct()
    {
        $this->table = yii::$app->db->tablePrefix.'purchase_saleman';
    }

    public function get_all_saleman($purchase)
    {
        $db = new Query();
        $info = $db->select('saleman_list')
        ->from($this->table)
        ->where(['purchase'=>$purchase])
        ->one();
        return $info;
    }
}
